package com.seeyon.apps.ext.ObxMsgPush.utils;
public abstract interface Constants {
	public static final String SESSION_CURRENT_USER = "com.seeyon.current_user";
	public static final String SESSION_USER_OFFLINE_REASON = "com.seeyon.user.offline.reason";
	public static final String LOGIN_DEPARTMENT = "com.seeyon.login.department";
	public static final String LOGIN_USERAGENT_FROM = "UserAgentFrom";
	public static final String LOGIN_ERROR_DESTINATION = "com.seeyon.login.error_destination";
	public static final String TOPFRAMENAME = "com.seeyon.sso.topframename";

	public static enum login_useragent_from {
		pc, mobile, email, other, iphone, ipad, androidphone, androidpad, weixin, share, ucpc, vjoin;

		private login_useragent_from() {
		}
	}

	public static enum login_sign {
		pc(1), phone(2), ucpc(4), wechat(8);

		private int value = 0;

		private login_sign(int value) {
			this.value = value;
		}

		public static login_sign valueOf(int value) {
			switch (value) {
				case 1 :
					return pc;
				case 2 :
					return phone;
				case 4 :
					return ucpc;
				case 8 :
					return wechat;
			}
			return null;
		}

		public static String stringValueOf(int value) {
			login_sign result = valueOf(value);
			return result == null ? null : result.toString();
		}

		public static login_sign enumValueOf(String value) {
			if (pc.toString().equals(value)) {
				return pc;
			}
			if (phone.toString().equals(value)) {
				return phone;
			}
			if (ucpc.toString().equals(value)) {
				return ucpc;
			}
			if (wechat.toString().equals(value)) {
				return wechat;
			}
			return null;
		}

		public int value() {
			return value;
		}
	}

	public static enum LoginUserState {
		offline, online, leave;

		private LoginUserState() {
		}
	}

	public static enum LoginUserOnlineSubState {
		normal, out, busy, dontDisturb, meeting;

		private LoginUserOnlineSubState() {
		}
	}

	public static enum LoginOfflineOperation {
		kickOff, loginAnotherone, adminKickoff, networkOff, unknown, changePassword;

		private LoginOfflineOperation() {
		}
	}

	public static enum user_sso_from {
		nc_portal;

		private user_sso_from() {
		}
	}

	public static final Long GLOBAL_NULL_ID = Long.valueOf(-1L);
	public static final String EDITOR_TYPE_HTML = "HTML";
	public static final String EDITOR_TYPE_PDF = "Pdf";
	public static final String EDITOR_TYPE_OFFICE_WORD = "OfficeWord";
	public static final String EDITOR_TYPE_OFFICE_EXCEL = "OfficeExcel";
	public static final String EDITOR_TYPE_WPS_WORD = "WpsWord";
	public static final String EDITOR_TYPE_WPS_EXCEL = "WpsExcel";
	public static final String EDITOR_TYPE_GD = "gd";
	public static final String EDITOR_TYPE_FORM = "FORM";
	public static final String EDITOR_RTE_BAR_TYPE_BASIC = "Basic";
	public static final String EDITOR_RTE_BAR_TYPE_DEFAULT = "Default";
	public static final String OFFICE_EDIT_TYPE_1_0 = "1,0";
	public static final String OFFICE_EDIT_TYPE_0_0 = "0,0";
	public static final String STRING_TOKEN_DELIMITER = "\\s+";
	public static final String DEFAULT_EMPTY_STRING = "";
	public static final String PRODUCT_DEFINITION_CATEGORY = "ctp_product_information";

	public static enum OFFICS_FILE_TYPE {
		doc, xls, wps, et, pdf, docx, xlsx, gd;

		private OFFICS_FILE_TYPE() {
		}
	}
	public static final int TEAM_ALLOW_SIZE = 100;
	public static final int PC_LOGIN_REMIND_TYPE = 10;
	public static final String DEFAULT_MESSAGE_RESOURCE = "com.seeyon.ctp.common.usermessage.resources.i18n.UserMessageResources";

	public static enum UserMessage_TYPE {
		SYSTEM, PERSON, DEPT_TEAM, SYSTEM_TEAM, PROJECT_TEAM, PERSON_TEAM;

		private UserMessage_TYPE() {
		}
	}

	public static enum UserMessage_OPERATION_TYPE {
		AT, REPLY, TRACK, TEMPLATE;

		private UserMessage_OPERATION_TYPE() {
		}
	}

	public static enum UserMessage_SOURCE_TYPE {
		ORDINARY, AI;

		private UserMessage_SOURCE_TYPE() {
		}
	}

	public static UserMessage_TYPE valueOf(int type) {
		if (type == UserMessage_TYPE.SYSTEM.ordinal()) {
			return UserMessage_TYPE.SYSTEM;
		}
		if (type == UserMessage_TYPE.PERSON.ordinal()) {
			return UserMessage_TYPE.PERSON;
		}
		if (type == UserMessage_TYPE.DEPT_TEAM.ordinal()) {
			return UserMessage_TYPE.DEPT_TEAM;
		}
		if (type == UserMessage_TYPE.SYSTEM_TEAM.ordinal()) {
			return UserMessage_TYPE.SYSTEM_TEAM;
		}
		if (type == UserMessage_TYPE.PROJECT_TEAM.ordinal()) {
			return UserMessage_TYPE.PROJECT_TEAM;
		}
		if (type == UserMessage_TYPE.PERSON_TEAM.ordinal()) {
			return UserMessage_TYPE.PERSON_TEAM;
		}
		return UserMessage_TYPE.SYSTEM;
	}

	public static enum LinkOpenType {
		open, href;

		private LinkOpenType() {
		}
	}

	public static enum INENTIFIER_INDEX {
		HAS_ATTACHMENTS;

		private INENTIFIER_INDEX() {
		}
	}

	public static enum MessageFilterOption {
		ALL;

		private MessageFilterOption() {
		}
	}

	public static enum MessageFilterOption_Collaboration {
		onlyImportant;

		private MessageFilterOption_Collaboration() {
		}
	}

	public static enum MessageFilterOption_Edoc {
		onlyExigent, edocSend, edocRec, edocSign, exSend, exSign, edocRegister, exchange;

		private MessageFilterOption_Edoc() {
		}
	}

	public static enum MessageFilterOption_Plan {
		day, week, month, anyTime;

		private MessageFilterOption_Plan() {
		}
	}
}